pkgname=vdr-clock
pkgver=0.0.6
pkgrel=1
arch=('i686')
pkgdesc="A clock plugin for VDR"
url="http://vdr.humpen.at/index.php/87/0/"
license=('GPL')
depends=('vdr' 'gcc')
source=(http://vdr.humpen.at/uploads/media/$pkgname-$pkgver.tgz \
	vdr-clock-extraqual.diff)
md5sums=('d90b6e5b79108a6b5d656d2cf5951fd8' 'a9067ca89f4d282d21cccb008882ae52')

build() {
  cd $startdir/src/clock-$pkgver

  patch -Np1 -i $startdir/src/vdr-clock-extraqual.diff || return 1

  sed -i \
	 -e 's:@cp $@ :install -D -m 755 $@ $(DESTDIR):' \
	 -e 's:../../man:man:' \
	 Makefile
  make VDRDIR=/usr/include/vdr LIBDIR=/usr/lib/vdr DESTDIR=$startdir/pkg all || return 1
}
